const mutations = {
    setIsShowLoginPopup(state,val) {
        state.isShowLoginPopup = val;
    },
    setUserInfo(state,obj){
      state.userInfo.refresh_token = obj.refresh_token;
      state.userInfo.timestamp = obj.timestamp
    },
    setInitUserInfo(state,obj){
      state.initUserInfo.uname = obj.uname;
      state.initUserInfo.face = obj.face;
      state.initUserInfo.money = obj.money;
      state.initUserInfo.isLogin = obj.isLogin;
      state.initUserInfo.level_info = obj.level_info;
      state.initUserInfo.mid = obj.mid;
      state.initUserInfo.img_url = obj.wbi_img.img_url
      state.initUserInfo.sub_img = obj.wbi_img.sub_url
    },
    outLogin(state){
      const object = {
                    uname:'',
                    face:'',
                    money:'',
                    isLogin:false,
                    level_info:''
                  }
      state.initUserInfo = object;
    },
    setIsScrollHegiht(state,flag){
      state.isScrollHegiht = flag
    },
    setisScrollShow(state,flag){
      state.isScrollShow = flag
    },
    //卡片的每个类型的list数据
    setVideoAfterCardList(state,params) {
      state.videoAfterCardList.set(params.type,params.arr)
    },
    //卡片的类型数据
    setHasVideoTypeArr(state,arr) {
      state.hasVideoTypeArr = arr
    },
    setUpInfo(state,params) {
      state.upInfo = {...params}
    }
}
export default mutations